package com.fireXXX.job.analysis.crawler.error;

import com.fireXXX.job.analysis.crawler.util.ExceptionUtil;


/**
 * @description: TODO
 * @throws:
 * @author: zhuangzhang2
 * @date: 2020/04/09 14:40
 */
public class CrawlerException extends RuntimeException {

    public CrawlerException() {
    }

    public CrawlerException(String message) {
        super(message);
    }

    public CrawlerException(String message, Throwable cause) {
        super(message, cause);
    }

    public CrawlerException(Throwable cause) {
        super(cause);
    }

    public String getFirstNonNullMessage() {
        return ExceptionUtil.getFirstNonNullMessage(this);
    }

}